using System;
class Matrix
{
	static void Main()
	{
		//Write a program that reads from the console a positive integer number N
		//		(N < 20) and outputs a matrix like the following:
		//3-> 1 2 3  4-> 1 2 3 4
		//    2 3 4      2 3 4 5
		//    3 4 5      3 4 5 6
		//               4 5 6 7
		Console.Write("Input n: ");
		
		int n = int.Parse(Console.ReadLine());
		Console.WriteLine();
		if(n<20 && n>1)
		{

				for(int row =0 ; row < n; row++)
				{
					for(int column=row+1; column<n+row+1; column++)
					{
						Console.Write(column+"  ");
					}
					
					Console.WriteLine();
				}
		}
		else
		{
			Console.WriteLine("Wrong Input!");
			
		}
	}
}
